<template>
  <div class="item">
    <div class="wrapper">
      <div class="avatar" v-if="item.url"><img :src="item.url"></div>
      <div class="content">
        <div class="info">
          <h4 style="margin: 0 10px;padding: 0">{{item.username}}</h4>
          <span>{{item.eva_time}}</span>
        </div>
        <div class="detail">
          {{item.eva_content}}
        </div>
      </div>
    </div>
  </div>

</template>

<script>
  export default {
    name: "CommentShowItem",
    props:{
      item:Object
    }
  }
</script>

<style scoped>
  .wrapper{
    width: 500px;
    height: 100px;
    border: 1px solid #d0d1d2;
    box-shadow: 0 0 5px #999;
    margin: 0 50px 15px;
    display: flex;
    border-radius: 10px;
  }
  .avatar{
    background-color: #07689e;
    position: relative;
  }
  img{
    width: 80px;
    height: 80px;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
  }
  .content{
    display: inline;
  }

  .info{
    /*display: flex;*/
    text-align: left;
    padding: 5px 50px;
    background: url("../../../assets/images/评论.png") no-repeat;
    background-size: 500px;
    color: #f5f0f0;
  }
  .info span{
    font-size: 12px;
  }
  .detail{
    padding: 5px 50px;
    text-align: left;
    color: #666;
  }
</style>